home *** CD-ROM | disk | FTP | other *** search
/ Aminet 34 / Aminet 34 (2000)(Schatztruhe)[!][Dec 1999].iso / Aminet / disk / optim / PFSDefragTry.lha / PFSDefragTry.readme < prev    next >
Encoding:
Text File  |  1999-10-08  |  6.7 KB  |  206 lines

  1. Short:    Tries to defrag PFS partitions (1.5), with source
  2. Uploader: Martin-Steigerwald@gmx.net (Martin Steigerwald)
  3. Author:   Martin Steigerwald and Stefano Pucino
  4. Type:     disk/optim
  5.  
  6.  
  7. $VER: PFSDefragTry.readme 1.5 (29.9.1999)
  8. $Id: PFSDefragTry.readme 1.5 1999/10/08 18:20:06 helios Exp $
  9.  
  10. Note this is a later version than the previous 37.5 version!
  11.  
  12. ABOUT
  13.  
  14. *Tries* to defragment PFS partitions by recopying all fragmented files.
  15. Will run diskvalid in analyse mode to get a list of the fragmented files.
  16.  
  17.  
  18. DISCLAIMER
  19.  
  20. I REJECT ANY RESPONSIBILITIES IF YOU LOOSE YOUR DATA.
  21.  
  22. * NO WARRANTIES * NO WARRANTIES * NO WARRANTIES * NO WARRANTIES *
  23.  
  24. So, I hope this is clear now. ;-) Sorry, but I had to do this.
  25.  
  26. NOTE: THIS IS A BETA VERSION. THE NEW FILENOTE, DATE AND ATTRIBUTE SUPPORT
  27. HAS NOT BEEN TESTED THOROUGHLY. USE AT YOUR OWN RISK!
  28.  
  29.  
  30. DISTRIBUTION
  31.  
  32. PFSDefragTry was Freeware, is Freeware and will always be Freeware. Now
  33. including source. When you want to continue development see below under
  34. "FURTHER DEVELOPMENT?".
  35.  
  36.  
  37. FURTHER DEVELOPMENT?
  38.  
  39. I have no time to fiddle around with this now. Thus I included the source
  40. code to allow further developments.
  41.  
  42. You can freely continue development *non-commercially*. This means this
  43. and further developments can only ever be released non-commercially as
  44. freeware.
  45.  
  46. You can continue developing without noticing me. But then please rename it
  47. when you release it and keep my name mentioned.
  48.  
  49. I prefer when you contact me when you want to continue development. Then I
  50. could hand it over to you for further development officially. This means
  51. you also take over support for it. ;-) (Its not a lot support queries,
  52. really.)
  53.  
  54. Continuing development is easy: AmigaE 3.3 is freeware now. Just download
  55. and use it. But you may well transfer the source to C if you like.
  56.  
  57.  
  58. TODO
  59.  
  60. Some ideas I got from users (well there are actually some;-):
  61. - preserve protection bits and filenotes. Yes, my copy routine didn't
  62.   care about this at all.
  63.   Easy solution:  Just make C:Copy resident and use C:Copy CLONE
  64.   Other solution: Implement the needed stuff in the copy routine of
  65.                   PFSDefragTry
  66.   (Stefan Schulz, Arnljot Arntsen)
  67.  
  68. Ideas of my own:
  69. - some GUI with progress display and stuff
  70.  
  71.  
  72. REQUIREMENTS
  73.  
  74. AmigaOS2.0+
  75. PFS2/3. It also works on AFS, but I really recommended to update to PFS2/3!
  76.  
  77.  
  78. USAGE
  79.  
  80. Usage is simple.
  81.  
  82. PFSDefragTry DEVICE/A,TEMPDIR,BUFLEN/N
  83.  
  84. As you can see only one argument is needed. And this is the device you
  85. want to defragment!
  86.  
  87. With TEMPDIR you can specify where PFSDefragTry should copy the files
  88. file by file in order to let PFS defragment them. If you do not
  89. specify it files will be copied into DEVICE/A:. I recommend pointing
  90. TEMPDIR to an other partition than the one being defragmented.
  91.  
  92. TEMPDIR must have enough space to hold the biggest file to defragment. To
  93. find it out exactly try diskvalid DEVICE/A ANALYSE, look which files have
  94. been fragmented, and look which one is the largest of them. It is always
  95. save to just leave as much space in tempdir that the largest file of the
  96. complete partition will fit into there.
  97.  
  98. Files will be copied one by one. So one file will be copied. Then deleted.
  99. Then either renamed to its original name if your tempdir is on the same
  100. device that should be defragmented or copied back to its original place.
  101.  
  102. If there is not enough space, you get get AmigaDOS requesters. No extra
  103. space checking is done! Anyway files that are to big will simply not
  104. defragmented. Nothing else will happen. But you have to click that
  105. requesters away.
  106.  
  107. The more free space you have on the partition to defragment the better the
  108. chance to get a successful defragmentation. PFSDefragTry ONLY tries do
  109. use PFS to defragment files. It does not defragment the free space on a
  110. device.
  111.  
  112. Note: Currently all files that PFSDefragTry copies to defragment them
  113. will be set to the actual date! This is due to my own copying routine
  114. which simply uses AmigaDOS Read() and Write(). C:Copy doesn't like
  115. filenames with wildcards in it so I could not use it.
  116.  
  117. Maybe future versions will take care of the date stamps of the files. I
  118. don't need this, so it may only be implemented when someone ask me to do
  119. it.
  120.  
  121. The last parameter specifies the buffer size in bytes the copy routine
  122. will use! Default value is 65536. I recommend to set this to 1048576
  123. - 1 MB - or even more in order to avoid unnecessary hard disk head
  124. movements at least when TEMPDIR is on the same hard disc than the
  125. partition that is defragmented.
  126.  
  127. Some words about efficiency: It works fairly good, but it does not always
  128. be successful. Running it several times will most likely give better
  129. results than running it once.
  130.  
  131. When you have question or suggestion don't hesitate to email me.
  132.  
  133.  
  134. HISTORY
  135.  
  136. Hel = Martin 'Helios' Steigerwald
  137. Max = Stefano 'Max Headroom' Pucino
  138. When nothing is stated assume Hel ;-)
  139.  
  140. revision 1.5
  141. date: 1999/10/08 18:15:35;  author: helios;  state: Exp;  lines: +37 -25
  142. - now I have it... hmmm... Stefan stored the pointers to the
  143.   comment, the filedate and the protection bits to variables
  144.   and freed the DosObject afterwards and then used them to
  145.   restore the file data... this can't work or only works
  146.   in the case when the freed structure has not been overwritten
  147.   again
  148.   AH this, sucked ;-)
  149.   hopefully it really copies filenotes now... now keeps
  150.   fib open till not used anymore
  151. - added some more comments to the source
  152.  
  153. revision 1.4
  154. date: 1999/10/08 17:35:31;  author: helios;  state: Exp;  lines: +76 -43
  155. - cosmetical changes, revised error messages
  156. - tried to find not setting filenote problem... this
  157.   is strange. I could reproduce it when there was other
  158.   activity on disc but after some changes it seemed to
  159.   be gone
  160. - cause of that I added all error checking it can get
  161.   when comment can not be set it should really complain
  162.   now
  163.  
  164. revision 1.3
  165. date: 1999/09/29 12:23:22;  author: helios;  state: Exp;  lines: +2 -2
  166. - changed some texts
  167.  
  168. revision 1.2
  169. date: 1999/09/29 12:15:27;  author: helios;  state: Exp;  lines: +29 -6
  170. - now under control of HWGRCS (Hel)
  171. - implemented CTRL-C check while copying (Max)
  172. - implemented support for filecomment, date and attributes (Max)
  173. - This tool is completely Y2K-free ;-)) (Max)
  174.  
  175. PFSDefragTry 37.4 (17.9.1999)
  176. - changed name to PFSDefragTry, since PFS3 is out, and it also works
  177.   on AFS
  178. - changed legal status to public domain
  179. - added FURTHER DEVELOPMENT?
  180. - added TODO
  181. - little other changes in this readme
  182. - updated my email address!
  183.  
  184.  
  185. THANKS GO TO
  186.  
  187. Stefan Pucino for the 37.5 update with filenote, attributes and date
  188. support that I put into 1.2
  189.  
  190. Simon Dick for the idea.
  191.  
  192. Mark Harden for his work on the AFS FAQ and the support Fourth Level
  193. Developments should have actually done.
  194.  
  195. Michiel Pelt for PFS2!
  196.  
  197. Wouter van Oortmerssen for Amiga E
  198.  
  199.  
  200. AUTHOR
  201.  
  202. Martin Steigerwald
  203. Email: Martin-Steigerwald@gmx.net
  204. Web:   http://helios.home.pages.de
  205.  
  206.